Skip to content

Conversation

@elijames-codecov
Copy link
Contributor

URL parameter ferrying was implemented to preserve specific parameters across page navigations.

  • In src/utils.ts, the paramsToSync array was updated to [/^utm_/i, /^promo_/i, /code/, /ref/] to match the desired patterns.
  • A new utility function, ferryUrlParams, was added to src/utils.ts to extract and append these parameters to a given URL.
  • The SmartLink (src/components/smartLink.tsx) and NavLink (src/components/navlink.tsx) components were updated to utilize ferryUrlParams, ensuring internal links automatically include the ferried parameters.
  • A ParamFerry client component (src/components/paramFerry.tsx) was created. This component uses a MutationObserver to automatically process all internal links on a page, including dynamically added ones, by applying the ferried parameters. It intelligently skips external, anchor, mailto, and tel links.
  • The ParamFerry component was integrated into the root layout (app/layout.tsx), enabling sitewide parameter ferrying without additional setup.
  • This ensures that specified URL parameters are consistently carried forward as users navigate the site.

@vercel
Copy link

vercel bot commented Jun 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
develop-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 24, 2025 7:17pm
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 24, 2025 7:17pm

@elijames-codecov
Copy link
Contributor Author

DO NOT MERGE until tested & approval from legal.

@codecov
Copy link

codecov bot commented Jun 24, 2025

Bundle Report

Changes will decrease total bundle size by 2.0kB (-0.01%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-server-cjs 10.93MB 307 bytes (0.0%) ⬆️
sentry-docs-client-array-push 9.8MB -2.3kB (-0.02%) ⬇️

Affected Assets, Files, and Routes:

view changes for bundle: sentry-docs-server-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
6610.js (New) 1.65MB 1.65MB 100.0% 🚀
../instrumentation.js -3 bytes 973.36kB -0.0%
9523.js -3 bytes 949.31kB -0.0%
../app/[[...path]]/page.js 58 bytes 591.36kB 0.01%
../app/[[...path]]/page.js.nft.json 40 bytes 402.07kB 0.01%
../app/platform-redirect/page.js.nft.json 40 bytes 401.99kB 0.01%
../app/sitemap.xml/route.js.nft.json 40 bytes 399.96kB 0.01%
4518.js (New) 185.97kB 185.97kB 100.0% 🚀
9273.js -374 bytes 84.16kB -0.44%
7269.js 489 bytes 30.35kB 1.64%
9567.js 23 bytes 18.68kB 0.12%
1729.js (Deleted) -1.64MB 0 bytes -100.0% 🗑️
4217.js (Deleted) -191.77kB 0 bytes -100.0% 🗑️

Files in ../app/[[...path]]/page.js:

  • ./src/components/navlink.tsx → Total Size: 968 bytes

  • ./src/components/navlink.tsx → Total Size: 968 bytes

Files in 9273.js:

  • ./src/components/smartLink.tsx → Total Size: 449 bytes

  • ./src/components/smartLink.tsx → Total Size: 1.39kB

Files in 9567.js:

  • ./src/utils.ts → Total Size: 4.6kB

  • ./src/utils.ts → Total Size: 4.6kB

App Routes Affected:

App Route Size Change Total Size Change (%)
/ 489 bytes 2.61MB 0.02%
/[[...path]] 58 bytes 3.14MB 0.0%
view changes for bundle: sentry-docs-client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
static/chunks/pages/_app-*.js -3 bytes 873.24kB -0.0%
static/chunks/7750-*.js -3 bytes 415.85kB -0.0%
server/app/api/ip-*.js -782 bytes 258.35kB -0.3%
server/app/_not-*.js -782 bytes 258.34kB -0.3%
server/app/[[...path]]/page_client-*.js -782 bytes 258.3kB -0.3%
server/app/platform-*.js -782 bytes 243.84kB -0.32%
static/chunks/5539-*.js (New) 114.47kB 114.47kB 100.0% 🚀
static/chunks/app/[[...path]]/page-*.js -1 bytes 83.7kB -0.0%
static/chunks/753-*.js (New) 79.16kB 79.16kB 100.0% 🚀
static/chunks/404-*.js -438 bytes 43.16kB -1.0%
static/chunks/4746-*.js 1.27kB 21.6kB 6.27% ⚠️
static/chunks/app/platform-*.js -1 bytes 13.1kB -0.01%
app-*.json -3 bytes 4.59kB -0.07%
static/chunks/app/not-*.js -1 bytes 2.75kB -0.04%
static/-*.js (New) 684 bytes 684 bytes 100.0% 🚀
static/-*.js (New) 77 bytes 77 bytes 100.0% 🚀
static/chunks/4926-*.js (Deleted) -120.27kB 0 bytes -100.0% 🗑️
static/chunks/9212-*.js (Deleted) -73.36kB 0 bytes -100.0% 🗑️
static/wVW1HYg79DZ1uunK7vnXF/_buildManifest.js (Deleted) -684 bytes 0 bytes -100.0% 🗑️
static/wVW1HYg79DZ1uunK7vnXF/_ssgManifest.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️

Files in static/chunks/404-*.js:

  • ./src/components/smartLink.tsx → Total Size: 1.48kB

Files in static/chunks/4746-*.js:

  • ./src/utils.ts → Total Size: 5.28kB

App Routes Affected:

App Route Size Change Total Size Change (%)
/ -1 bytes 12.48kB -0.01%

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants